package me.zhengjie.utility.liftState;

import lombok.Getter;

@Getter
public enum LiftTaskStatus {

    TASK_UNEXECUTED("0","任务已生成，未执行"),

    RECEIVED_CALL("1","电梯已收到呼叫指令"),

    ARRIVE_START_FLOOR_AND_OPEN_DOOR("2","到达起始楼层并开门到位"),

    GET_ORDER_ENTER_LIFT("3","AGV收到进入电梯储位指令"),

    ARRIVE_STORAGE_POINT ("4","AGV上报到达电梯储位"),

    CLOSE_DOOR_TO_END_FLOOR("5","收到关门指令并前往终点楼层"),

    ARRIVE_END_FLOOR_AND_OPEN_DOOR("6","到达终点楼层并开门到位"),

    GET_ORDER_LEAVE_LIFT("7","AGV收到离开电梯储位指令"),

    LEAVE_LIFT("8","AGV上报离开电梯"),

    TO_CLOSE_DOOR("9","电梯收到关门命令"),

    TASK_FINISH("10","任务已完成"),

    //电梯申请资源
    APPLY_RESOURCE("1","APPLY_RESOURCE"),

    //电梯执行到目标楼层
    EXECUTE_TASK("2","EXECUTE_TASK"),

    //释放电梯资源
    RELEASE_RESOURCE("3","RELEASE_RESOURCE"),

    //AGV 申请送料
    APPLY_FROM_AGV("","APPLY_FROM_AGV"),

    //AGV 申请接料
    APPLY_TO_AGV("","APPLY_TO_AGV")
    ;
    //任务已完成
    //TASK_FINISH("7","任务已完成");

    private final String code;

    private final String message;

    LiftTaskStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
